﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using WPFDemoMVVM.View;

namespace WPFDemoMVVM
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            RadioButtonView radioButtonView = new RadioButtonView();
            radioButtonView.ShowDialog();
        }

        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            BehaviorView behaviorView = new BehaviorView(); 
            behaviorView.ShowDialog();
        }

        private void Button_Click_2(object sender, RoutedEventArgs e)
        {
            ValueConverterView converterView = new ValueConverterView();
            converterView.ShowDialog();
        }

        private void Button_Click_3(object sender, RoutedEventArgs e)
        {
            ItemControlView itemControlView = new ItemControlView();    
            itemControlView.ShowDialog();
        }

        private void Button_Click_4(object sender, RoutedEventArgs e)
        {
            ItemControlSortView itemControlSortView = new ItemControlSortView();
            itemControlSortView.ShowDialog();
        }

        private void Button_Click_5(object sender, RoutedEventArgs e)
        {
            Button button = sender as Button;
            if (button.Tag.ToString() == "Page1")
            {
                DataGridView dataGridView = new DataGridView();
                dataGridView.ShowDialog();
            }
            else
            {
                DataGridAndPageView dataGridView = new DataGridAndPageView();
                dataGridView.ShowDialog();
            }
            
        }

        private void language_Click(object sender, RoutedEventArgs e)
        {
            LanguageChangeView languageChangeView = new LanguageChangeView();
            languageChangeView.ShowDialog();
        }

        private void Button_Click_6(object sender, RoutedEventArgs e)
        {
            DataGridAutoView dataGridAutoView = new DataGridAutoView();
            dataGridAutoView.ShowDialog();
        }

        private void Button_Click_7(object sender, RoutedEventArgs e)
        {
            ComBoxBindNumberView comBoxBindNumberView = new ComBoxBindNumberView();
            comBoxBindNumberView.ShowDialog();
        }

        private void Button_Click_8(object sender, RoutedEventArgs e)
        {
            UserInputView userInputView = new UserInputView();
            userInputView.ShowDialog();      
        }

        private void Button_Click_9(object sender, RoutedEventArgs e)
        {
            ParentWindow parentWindowView = new ParentWindow();
            parentWindowView.ShowDialog();
        }
    }
}
